 
<!doctype html>
<html>
<head>
<meta charset="utf-8">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport">
<meta content="yes" name="apple-mobile-web-app-capable">
<meta content="black" name="apple-mobile-web-app-status-bar-style">
<meta content="telephone=no" name="format-detection">
<title>微名片管理</title>

<script>

document.addEventListener('WeixinJSBridgeReady', function onBridgeReady() {
WeixinJSBridge.call('hideOptionMenu');
});

</script>


 <style>
.touxiang{ height:12rem; width:8rem; margin:0 auto;} 
.touxiang img{ width:8rem; height:8rem;   margin-top:3rem;}
.touxiang img:hover{ opacity:0.7;} 
.bd input{ height:3rem; background:#FFF;  }
.bd .u_btn_b{ height:3rem;}
.h .ui-btn{ line-height:1.5rem;}
#edui1,#edui60,#edui60_iframeholder,#edui1_iframeholder{ width:100% !important; }
.simditor .simditor-body,.simditor .simditor-wrapper .simditor-placeholder{ padding:10px !important}

 
textarea{ border:none !important; text-shadow:none !important; background:none !important}
.ui-focus ,.u_txt{ background:none !important; text-shadow:none !important;
 -moz-box-shadow: none !important;
 -webkit-box-shadow: none !important;
 box-shadow: none !important;
 
}
.ui-header a{padding: 0.5rem 1rem 0.5rem 2rem;}
.ui-input-text, .ui-input-search{ margin:.2em 0 .5em !important;
}
.wysiwyg-editor{ padding:5px;} 

.btn-group{ margin-left:1px !important; margin-right:1px !important;}
 
.note-editor{  border:1px solid #cfcfcf !important}
.u_btn_b{ width:100%; height:40px; line-height:40px; text-align:center; background:#f2f2f2; border:1px solid #d8d8d8; border-radius:0.3rem;}
   </style> 
<script src="http://code.jquery.com/jquery-1.9.1.min.js"></script> 
<script src="http://apps.bdimg.com/libs/jquerymobile/1.4.2/jquery.mobile.min.js"></script>
<script src="__PUBLIC__/Admin/js/artDialog/artDialog.js"></script>
<script src="__PUBLIC__/Admin/js/artDialog/plugins/iframeTools.js"></script>
<link rel="stylesheet" type="text/css" href="__PUBLIC__/Admin/js/artDialog/skins/default.css">

 <!--编辑器-->
 
  <!-- include libraries BS3 -->
  <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/css/bootstrap.min.css" />
  <script type="text/javascript" src="http://netdna.bootstrapcdn.com/bootstrap/3.0.3/js/bootstrap.min.js"></script>
  <link rel="stylesheet" href="http://netdna.bootstrapcdn.com/font-awesome/4.0.3/css/font-awesome.min.css" />
 
   <!-- include summernote -->
  <link rel="stylesheet" href="__PUBLIC__/Member/weixin_dg114/summernote/summernote.css">
  <script type="text/javascript" src="__PUBLIC__/Member/weixin_dg114/summernote/summernote.js"></script>

  <script type="text/javascript">
    $(document).ready(function() {
      $('.textarea-id').summernote({
        height: 200,
        tabsize: 2,
        codemirror: {
          theme: 'monokai'
        }
 ,toolbar: [

    ['style', ['style']], // no style button

    ['style', ['fontname','bold', 'italic', 'underline', 'clear']],

    ['fontsize', ['fontsize']],
		
    ['color', ['color']],
    ['para', ['ul', 'ol', 'paragraph']],
    ['height', ['height']],
    ['insert', ['picture', 'link','hr']], // no insert buttons
	['Misc', ['fullscreen','undo','redo']],
    //['table', ['table']], // no table button
    //['help', ['help']] //no help button
  ]

      });
	  
	   $('.textarea-ys').summernote({
        height: 200,
        tabsize: 2,
        codemirror: {
          theme: 'monokai'
        },toolbar: [

    ['style', ['style']], // no style button

    ['style', ['fontname','bold', 'italic', 'underline', 'clear']],

    ['fontsize', ['fontsize']],
		
    ['color', ['color']],
    ['para', ['ul', 'ol', 'paragraph']],
    ['height', ['height']],
    ['insert', ['picture', 'link','hr']], // no insert buttons
	['Misc', ['fullscreen','undo','redo']],
    //['table', ['table']], // no table button
    //['help', ['help']] //no help button
  ]
      });
	  
	  
    });
  </script>
 
 <link rel="stylesheet" href="__PUBLIC__/Member/weixin_dg114/summernote/jquery.mobile.css" />

 
 <!--end编辑器-->  
  


 <script>
 function reloads(){
	 alert('提交成功');
	 location.reload();
	 
	 }
 var mydialog = art.dialog;
 
 function closedialog(){
	 mydialog.close();
}
 function showImgBox(curElement,heid,type){ 
if(type==1){ title_='上传logo';}else{title_='上传图片';}
	mydialog.open('{:U('showimgBox')}', {
		
		width:$(window).width(), height: 300,lock:true,title:title_,yesClose:false, ok:function(){
			var d = this.iframe.contentWindow.document;
			
			
		$.post(
		'{:U('Jcrop')}',
		{	type:$(d).find('#type').val(),
			x:$(d).find('#x').val(),
		    y:$(d).find('#y').val(),
			w:$(d).find('#w').val(),
			h:$(d).find('#h').val(),
			src:$(d).find('#img_src').val() 
			},
			function(data){
			if(data == 'OK'){
				$('#'+heid).val($(d).find('#img_src').val());
				curElement.src = $(d).find('#img_src').val();
				closedialog();
			}
		}
		
		); 
		
		
		
		
	
			
		
	}});
}
 </script>
<style>
body{ background:#eeeeee; }
 .i{ width:20px; background:url(__PUBLIC__/Member/weixin_dg114/jiantou.png) no-repeat center;color:#000; 
background-size:55%;} 
.table{ background:#FFF; width:100%;}
table tr td{ padding-left:0.8rem; border-bottom:1px solid #e5e5e5; }
table tr:hover{ background:#f7f7f7;}
.table tr td img{ width:70px; height:70px; border-radius:6px;}
.table tr .td1{ width:70px; height:80px; }
 .table2{ width:100%; background:#FFF;}
.table2 tr td{ height:3rem;}
table tr td a{ width:100%; display:inline-block; text-decoration:none; color:#333 !important; height:3rem; line-height:3rem;
font-weight:normal !important;} 
  </style>
</head>

<body >
<style>
.tf{ width:100%; background:#FFF; height:3rem; margin-bottom:20px;}
#tb{ width:40px; background-size:75% !important;  text-align:center;}
.count{ width:100%; height:3rem; background:#FFF; line-height:3rem;}
.count tr td{ width:50%;}
.count tr td span{ float:right; margin-right:0.8rem; color:#626262;}
 
</style> 
    
  
     <!-- 企业详细资料 -->
 
 <div data-role="page" id="pageone" >
<div data-role="header" style="background:#2f2f2f; color:#FFF;border-width:0">

<a href="{:U('Member/Vcard/edit')}" data-role="button" data-icon="home" data-theme="b" data-ajax="false"  data-transition="flip">返回</a>
<h1 style="text-shadow:none">店铺资料</h1>
</div>
<div data-role="content" style="padding:0;">
 

<table class="table2" cellpadding="0" cellspacing="0" >
 
 
 
 
  
 

 
<tr onClick="location='#pagetwo5'">
<td id="tb" style="  background:url(__PUBLIC__/Member/weixin_dg114/tb/js.png) no-repeat center"></td>
<td style="padding-left: 0.2rem;"><a href="#pagetwo5" data-transition="flow">店铺介绍</a></td><td class="i"></td></tr>


<tr onClick="location='#pagetwo25'">
<td id="tb" style="  background:url(__PUBLIC__/Member/weixin_dg114/tb/tp.png) no-repeat center"></td>
<td style="padding-left: 0.2rem;"><a href="#pagetwo25" data-transition="flow">店铺图片</a></td><td class="i"></td></tr>
 
<tr onClick="location='#pagetwo28'">
<td id="tb" style="  background:url(__PUBLIC__/Member/weixin_dg114/tb/logo.png) no-repeat center"></td>
<td style="padding-left: 0.2rem;"><a href="#pagetwo28" data-transition="flow">店铺优势</a></td><td class="i"></td></tr>
 
 <tr><td colspan="3" style="background:#eeeff3; height:14px !important"></td></tr>

 
<tr onClick="location='__APP__/Member/Vcard/ditu'" data-ajax="false">
<td id="tb" style="  background:url(__PUBLIC__/Member/weixin_dg114/tb/dt.png) no-repeat center"></td>
<td style="padding-left: 0.2rem;"><a href="__APP__/Member/Vcard/ditu" data-transition="flow" data-ajax="false">百度地图</a></td><td class="i"></td></tr>
<tr><td colspan="3" style="background:#eeeff3; height:14px !important"></td></tr>


<tr onClick="location='#pagetwo22'">
<td id="tb" style="  background:url(__PUBLIC__/Member/weixin_dg114/tb/wz.png) no-repeat center"></td>
<td style="padding-left: 0.2rem;"><a href="#pagetwo22" data-transition="flow">店铺网址</a></td><td class="i"></td></tr>

<tr onClick="location='#pagetwo23'">
<td id="tb" style="  background:url(__PUBLIC__/Member/weixin_dg114/tb/yx.png) no-repeat center"></td>
<td style="padding-left: 0.2rem;"><a href="#pagetwo23" data-transition="flow">客服邮箱</a></td><td class="i"></td></tr>
  </table>
 

</div>
<include file="Public:footer" />
 </div>
  <!-- end企业详细资料 -->
 
 
  
  
   
 
 

 
 
 
  
  
   
  
  
  
  
  
 <!-- 企业介绍图  -->
 <div data-role="page" id="pagetwo25" >





  <div data-role="header" style="background:#2f2f2f; color:#FFF; border-width:0">
  <a href="#pageone" data-role="button" data-icon="home" data-theme="b" data-transition="flip">返回</a>
  <h1 style="text-shadow:none">店铺介绍图</h1> 
</div>
   <div data-role="content" style=" padding:0;" >
   <div class="touxiang">
   <img onClick="showImgBox(this,'company');" id="company_img" src="{$info.company_img}"/>
   
   <input type="hidden" value="" id="company">
   
</div>
 <a href="#copytx" data-rel="dialog" class="jianq" style="display:none">fff</a>  
  <table class="table2" cellpadding="0" cellspacing="0" style="border-top:1px solid #f2f2f2; margin-top:2rem;">
 <tr onClick="company_()">
<td style="background:url(__PUBLIC__/Home/weixin_dg114/menber/images/pic.png) no-repeat 10px center; background-size:40px;"> <a  data-transition="flow" style="padding-left:45px;">从相册选一张</a></td><td class="i"></td>
</tr>

 
 
</table>
 <script>
  function company_(){
	 
	 
	$("#company_img").click(); 
	 
	 
	 }
 
 
 document.getElementById('company_img').onload=function(){
	 
	 if($("#company").val() != ''){
		var img_s=$("#company").val();
		var url_imgtx="{:U('update')}";
		
		$.post(
		url_imgtx,
		{company_img:img_s},
		function(a){
			 
				$("#company").val(''); 
			
			},
		'html'
 		
		);
		
		 
		 }
	 
	 
	 
	 }

</script>

 
   
    
  </div>

  <include file="Public:footer" />
 
</div> 
<!-- end企业介绍图 -->

  
 
 


 



 <!-- 网址  -->
<div data-role="page" id="pagetwo22">
  <div data-role="header" style="background:#2f2f2f; color:#FFF; border-width:0">
  <a href="javascript:history.go(-1);"data-role="button" data-icon="home" data-theme="b" data-transition="flip">返回</a>
<h1 style="text-shadow:none">店铺网址</h1>
</div>

  <div data-role="content" >
   
  
    <div class="bd">
       <form id="tj" action="{:U('update')}" data-ajax="false" method="post">
     
     
             <input class="u_txt" placeholder="网址" name="wz" id="BasicInfoForm_nickname" type="text" maxlength="50" value="{$info.wz}">
 
          
           <div class="clearfix form_line save h" style="padding-top:10px;">
            <input class="u_btn_b" type="submit" value="提交"   >
          </div>
        
      </form>
  
     </div> 
  </div>
  
  
 
  
<include file="Public:footer" />

   
</div> 
<!-- end网址 -->

 <!-- 邮箱  -->
<div data-role="page" id="pagetwo23">
  <div data-role="header" style="background:#2f2f2f; color:#FFF; border-width:0">
  <a href="javascript:history.go(-1);"data-role="button" data-icon="home" data-theme="b" data-transition="flip">返回</a>
<h1 style="text-shadow:none">邮箱</h1>
</div>

  <div data-role="content" >
   
  
    <div class="bd">
       <form id="tj" action="{:U('update')}" data-ajax="false" method="post">
     
     
             <input class="u_txt" placeholder="邮箱" name="email" id="BasicInfoForm_nickname" type="text" maxlength="50" value="{$info.email}">
 
          
           <div class="clearfix form_line save h" style="padding-top:10px;">
            <input class="u_btn_b" type="submit" value="提交"   >
          </div>
        
      </form>
  
     </div> 
  </div>
  
  
 
  
<include file="Public:footer" />

   
</div> 
<!-- end邮箱 -->


 
 

 


 <!-- 企业介绍  -->
 
<div data-role="page" id="pagetwo5">
 


  <div data-role="header" style="background:#2f2f2f; color:#FFF; border-width:0">
  <a href="#pageone"data-role="button" data-icon="home" data-theme="b" data-transition="flip">返回</a>
<h1 style="text-shadow:none">店铺介绍</h1>
</div>

  <div data-role="content" style="padding:0.5em !important;">
  
  <!--图片上传-->
  <img onClick="showImgBox(this,'company_js')" id="company_js_img" class="company_js" style="display:none"/>
   
   <input type="hidden" value="" id="company_js">
    <script>
 $(function(){
	 
	 $(".textarea-id").siblings('.note-editor').find(".note-group-select-from-files").find("label").click(
	 function(){
		 
		 $(".company_js").click(); 
		 }
	 );
	 
	 
	 });
  document.getElementById('company_js_img').onload=function(){ 
     
	 var img=$("#company_js").val();
	 var img="http://"+window.location.host+"/"+img;
     $(".textarea-id").siblings('.note-editor').find(".ui-body-inherit").find(".note-image-url").val(img);
	 $(".textarea-id").siblings('.note-editor').find(".note-image-btn").removeAttr("disabled");
	 $(".textarea-id").siblings('.note-editor').find(".note-image-btn").removeClass("disabled");
	
	  
	 }

</script>
 <!--end图片上传-->
 <span style="font-size:0.8rem;">用电脑打开<font style="font-weight:bold">mp.dgwzjs.com</font>

,（二维码扫描登陆）编辑名片</span>
 	<form id="basicInfoForm" action="{:U('update')}" data-ajax="false" method="post" class="company_js_">
   
      <textarea class="u_txt textarea-id" name="content" id="textarea-id" type="text"   placeholder="填写企业介绍，然后提交" style="width:100%; height:165px;" >{$info.content}</textarea>

      
     <div class="clearfix form_line save h" style="padding-top:10px;">
            <input class="u_btn_b" type="submit" value="提交" id="upload_btn">
          </div>
              </form>
 

  </div>

   <include file="Public:footer" />

</div> 
<!-- end企业介绍 -->

  
  
 <!-- 企业优势  -->
 
<div data-role="page" id="pagetwo28">
 


  <div data-role="header" style="background:#2f2f2f; color:#FFF; border-width:0">
  <a href="#pageone"data-role="button" data-icon="home" data-theme="b" data-transition="flip">返回</a>
<h1 style="text-shadow:none">店铺优势</h1>
</div>

  <div data-role="content">
  
    
  <!--图片上传-->
  <img onClick="showImgBox(this,'company_ys')" id="company_ys_img" class="company_ys" style="display:none"/>
   
   <input type="hidden" value="" id="company_ys">
    <script>
 $(function(){
 	 $(".textarea-ys").siblings('.note-editor').find(".note-group-select-from-files").find("label").click(
	 function(){
		 
		 $(".company_ys").click(); 
		 }
	 );
	
	 
	 });
  document.getElementById('company_ys_img').onload=function(){ 
     
	 var img=$("#company_ys").val();
	 var img="http://"+window.location.host+"/"+img;
     $(".textarea-ys").siblings('.note-editor').find(".ui-body-inherit").find(".note-image-url").val(img);
	 $(".textarea-ys").siblings('.note-editor').find(".note-image-btn").removeAttr("disabled");
	 $(".textarea-ys").siblings('.note-editor').find(".note-image-btn").removeClass("disabled");
	
	  
	 }

</script>
 <!--end图片上传-->
    <span style="font-size:0.8rem;">用电脑打开<font style="font-weight:bold">mp.dgwzjs.com</font>

,（二维码扫描登陆）编辑名片</span>
 	<form id="basicInfoForm" action="{:U('update')}" data-ajax="false" class="company_ys_" method="post">
   
      <textarea class="u_txt textarea-ys" name="ys" id="textarea-ys" type="text"   placeholder="填写企业优势，然后提交" style="width:100%; height:165px;" >{$info.ys}</textarea>

      
     <div class="clearfix form_line save h" style="padding-top:10px;">
            <input class="u_btn_b" type="submit" value="提交" id="upload_btn">
          </div>
              </form>
 
  <script>
var editor = new Simditor({
  textarea: $('#textarea-ys'),
  toolbar:false
});

</script>  
  </div>

   <include file="Public:footer" />

</div> 
<!-- end企业优势 -->
 
 
 
 
  
</body>
</html>
